package junit;

import java.text.BreakIterator;

public class WordBoundaryIterator {

	public static final int DONE = BreakIterator.DONE;
	
	private static final BreakIterator iterator = BreakIterator.getWordInstance();
	
	private static final WordBoundaryIterator INSTANCE = new WordBoundaryIterator();
	
	public static WordBoundaryIterator getInstance(){
		return INSTANCE;
	}
	
	public int current(){
		return iterator.current();
	}
	
	public int following(int offset){
		return iterator.following(offset);
	}
	
	public int next(){
		return iterator.next();
	}
	
	public void setText(String text){
		iterator.setText(text);
	}
	
}
